[ToC] [Up] [Back] [Next] ... [Book Plug] |
The Information Commons .................... Introduction to HTML |
HTML allows you to specify special character highlighting or emphasis (eg boldface, italics, etc). These elements do NOT cause page breaks, and simply change the rendering of the characters enclosed inside the tags.
HTML allows you to specify these modes in two ways: Logically (by the logical meaning of the special text you wish to mark) and physically (by explicitly specifying the style you want, such as italics, boldfaced, underline, etc.). You are STRONGLY urged to use the logical renderings, as these will be more consistently interpreted from browser to browser.
Note that the logical styles may not be distinct (i.e. different logical styles may be rendered in the same way). Also, some browsers do not support all physical styles. For example, Mosaic does NOT support underlined text -- this is rendered without the underline.
HTML 3 Proposed several new text emphasis elements, such as BIG and SMALL for bigger and smaller text, and SUP and SUB for superscripts and subscripts. These are implemented on the Netscape Navigator 2.0 browser, but not by most other browsers. You should therefore be cautious in their use. Examples are given below, which will let you test the abilities of your own browser.
<EM>
this is example text </EM>
is rendered:
this is example text.
<STRONG>
this is example strong text
</STRONG>
is rendered:
this is example strong text.
<CODE>
this is example code </CODE>
is rendered:
this is example code
.
<SAMP> this is example text </SAMP>
is rendered:
this is example text.
<KBD> this is example text </KBD>
is
rendered:
"this is example text.
<VAR> this is example text </VAR>
is rendered:
this is example text.
<DFN> this is example text
</DFN>
is rendered:
this is example text.
<CITE> this is example text
</CITE>
is rendered:
this is example text.
The physical style elements, and their renderings, are:
<TT> this is example
text </TT>
is rendered:
this is example text.
<B> this is example text
</B>
is rendered:
this is example text.
<I> this is example text </I>
is rendered:
this is example text.
<U> this is example text </U>
is rendered:
this is example text.This element is not widely supported.
<BIG> this is example text </BIG>
is rendered:
this is example text.This element is not widely supported.
<SMALL> this is example
text </SMALL>
is rendered:
this is example text.This element is not widely supported.
<SUB>sub</SUB>script
is rendered:
subscript.This element is not widely supported.
<SUP>sup</SUP>script
is rendered:
supscript. This element is not widely supported.
<FONT SIZE="-1">smaller</FONT>
is rendered:
smaller.
The microsoft browser also allows you to select font faces. Thus
<FONT FACE="arial"> will select an arial font. For example,
<FONT FACE="arial">this is arial font </FONT>
is rendered:
this is arial font.
[ToC] [Up] [Back] [Next] ... [Book Plug] | .................... Introduction to HTML |
© Ian Graham 1994-1995 | Page Last Updated: 4 December 1995 |